Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: API changes for handling new submission_email location #3582

Merged
merged 8 commits into from
Aug 30, 2024

Conversation

RODO94
Copy link
Contributor

@RODO94 RODO94 commented Aug 28, 2024

What does this PR do?

This PR looks to alter references from teams.submission_email to team_settings.submission_email.

I have ran through all references to submission_email, sendEmail, submissionEmail and repointed them to the new reference.

Copy link

github-actions bot commented Aug 28, 2024

Removed vultr server and associated DNS entries

@RODO94 RODO94 closed this Aug 29, 2024
@RODO94 RODO94 force-pushed the rory/submission-email-api-changes branch from be27de5 to f484485 Compare August 29, 2024 13:14
@RODO94 RODO94 reopened this Aug 29, 2024
@RODO94 RODO94 marked this pull request as ready for review August 29, 2024 15:55
@RODO94
Copy link
Contributor Author

RODO94 commented Aug 29, 2024

Quick Pizza link for testing: https://3582.planx.pizza/buckinghamshire/submission-email-test

@RODO94 RODO94 requested a review from a team August 29, 2024 15:59
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

// Confirm this local authority (aka team) has an email configured in teams.submission_email
const { sendToEmail, notifyPersonalisation } =
// Confirm this local authority (aka team) has an email configured in team_settings.submission_email
const { notifyPersonalisation } =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: If we're only using the sendToEmail field in this file, and not the rest of the notifyPersonalisation object, it would be cleaner / neater to destructure one level deeper here, and then not have to repeatedly write notifyPersonalisation.sendToEmail throughout the file 👍

Suggested change
const { notifyPersonalisation } =
const { notifyPersonalisation: { sendToEmail } } =

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are also using ...notifyPersonalisation for part of the code below. I'll keep as is now.

@RODO94 RODO94 merged commit b27369d into main Aug 30, 2024
12 checks passed
@RODO94 RODO94 deleted the rory/submission-email-api-changes branch August 30, 2024 12:52
DafyddLlyr added a commit that referenced this pull request Aug 31, 2024
@RODO94
Copy link
Contributor Author

RODO94 commented Sep 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants